package com.hotec.PROJECT_NAME.modules.cmd.support;

/**
 * Created by ldz666 on 2022/9/14.
 */
public abstract class AbstractCommand<T> implements Command<T> {

    public abstract T doExecute(CommandContext commandContext);

    @Override
    public T execute(CommandContext commandContext) {
        this.valid(commandContext);
        return this.doExecute(commandContext);
    }

    public void valid(CommandContext commandContext) {

    }
}
